
import { defineNuxtConfig } from 'nuxt/config'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  vite: {
    /**
     * global typescript interface cannot be used by defineProps
     * @see [github](https://github.com/vuejs/core/issues/8612)
     */
    vue: {
      script: {
        globalTypeFiles: [
          'types/**/*.d.ts',
          'types/components/webgl_card.d.ts'
        ]
      }
    },
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@use "@/assets/styles/global.scss" as *;'
        }
      }
    }
  },
  typescript: {
    tsConfig: {
      include: ["types/**/*.d.ts"]
    }
  }
})


